package com.guigu.tms.security.config;

import com.guigu.tms.security.util.ValidateCode;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ValidateCodeConfig {
        @Bean
        public ValidateCode validateCode(){
            ValidateCode validateCode = new ValidateCode();
            validateCode.setKey("courier");
            return validateCode;
        }

    @Bean
    public ValidateCode DriverCode(){
        ValidateCode validateCode = new ValidateCode();
        validateCode.setKey("driver");
        return validateCode;
    }
}
